home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 4.3 KB | 117 lines | [TEXT/MPS ] |
- ;
- ; File: CMAcceleration.a
- ;
- ; Contains: ColorSync 2.0 Acceleration Component Interfaces
- ;
- ; Version: Technology: ColorSync 2.0
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__CMACCELERATION__') = 'UNDEFINED' THEN
- __CMACCELERATION__ SET 1
-
- IF &TYPE('__MEMORY__') = 'UNDEFINED' THEN
- include 'Memory.a'
- ENDIF
- IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
- include 'Components.a'
- ENDIF
- IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
- include 'CMApplication.a'
- ENDIF
- IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
- ; –––––––––––––––––––––––––––––––––––––– version info
-
- cmAccelerationInterfaceVersion EQU 1
- ; –––––––––––––––––––––––––––––––––––––– Component Type
-
- cmAccelerationComponentType EQU 'csac'
- ; –––––––––––––––––––––––––––––––––––––– Required Component function selectors
-
- cmLoadTables EQU 0
- cmCalculateData EQU 1
- ; –––––––––––––––––––––––––––––––––––––– table data for acceleration component
- CMAccelerationTableData RECORD 0
- inputLutEntryCount ds.l 1 ; offset: $0 (0) ; count of entries for input lut for one dimension
- inputLutWordSize ds.l 1 ; offset: $4 (4) ; count of bits of each entry ( e.g. 16 for WORD )
- inputLut ds.l 1 ; offset: $8 (8) ; handle to input lut
- outputLutEntryCount ds.l 1 ; offset: $C (12) ; count of entries for output lut for one dimension
- outputLutWordSize ds.l 1 ; offset: $10 (16) ; count of bits of each entry ( e.g. 8 for BYTE )
- outputLut ds.l 1 ; offset: $14 (20) ; handle to output lut
- colorLutInDim ds.l 1 ; offset: $18 (24) ; input dimension ( e.g. 3 for LAB ; 4 for CMYK )
- colorLutOutDim ds.l 1 ; offset: $1C (28) ; output dimension ( e.g. 3 for LAB ; 4 for CMYK )
- colorLutGridPoints ds.l 1 ; offset: $20 (32) ; count of gridpoints for color lut ( for one Dimension )
- colorLutWordSize ds.l 1 ; offset: $24 (36) ; count of bits of each entry ( e.g. 8 for BYTE )
- colorLut ds.l 1 ; offset: $28 (40) ; handle to color lut
- inputColorSpace ds.l 1 ; offset: $2C (44) ; packing info for input
- outputColorSpace ds.l 1 ; offset: $30 (48) ; packing info for output
- userData ds.l 1 ; offset: $34 (52)
- reserved1 ds.l 1 ; offset: $38 (56)
- reserved2 ds.l 1 ; offset: $3C (60)
- reserved3 ds.l 1 ; offset: $40 (64)
- reserved4 ds.l 1 ; offset: $44 (68)
- reserved5 ds.l 1 ; offset: $48 (72)
- sizeof EQU * ; size: $4C (76)
- ENDR
- ; typedef struct CMAccelerationTableData * CMAccelerationTableDataPtr
-
- ; typedef CMAccelerationTableDataPtr * CMAccelerationTableDataHdl
-
- ; –––––––––––––––––––––––––––––––––––––– calc data for acceleration component
- CMAccelerationCalcData RECORD 0
- pixelCount ds.l 1 ; offset: $0 (0) ; count of input pixels
- inputData ds.l 1 ; offset: $4 (4) ; input array
- outputData ds.l 1 ; offset: $8 (8) ; output array
- reserved1 ds.l 1 ; offset: $C (12)
- reserved2 ds.l 1 ; offset: $10 (16)
- sizeof EQU * ; size: $14 (20)
- ENDR
- ; typedef struct CMAccelerationCalcData * CMAccelerationCalcDataPtr
-
- ; typedef CMAccelerationCalcDataPtr * CMAccelerationCalcDataHdl
-
- ;
- ; ————————————————————————————————————————————————————————————————————————————————————————————————
- ; A c c e l e r a t i o n C o m p o n e n t I n t e r f a c e s
- ; ————————————————————————————————————————————————————————————————————————————————————————————————
- ;
- ;
- ; pascal CMError CMAccelerationLoadTables(ComponentInstance CMSession, CMAccelerationTableDataPtr tableData)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _CMAccelerationLoadTables
- move.l #$00040000,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION CMAccelerationLoadTables
- ENDIF
-
- ;
- ; pascal CMError CMAccelerationCalculateData(ComponentInstance CMSession, CMAccelerationCalcDataPtr calcData)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _CMAccelerationCalculateData
- move.l #$00040001,-(sp)
- moveq #0,D0
- dc.w $A82A
- EndM
- ELSE
- IMPORT_CFM_FUNCTION CMAccelerationCalculateData
- ENDIF
-
- ENDIF
- ENDIF ; __CMACCELERATION__
-
-